{% extends "base.html" %}
{% block title %}
    添加用户
{% endblock %}
{% block logo %}

        <span href="" class="dropdown-toggle"><i class="fa fa-user"></i>  {{ useradmin.username }}
            <ul class="dropdown-menu">
                {% if useradmin %}
                <li><a href="/psw-modify/">修改密码</a></li>
                <li><a href="/user-list/">用户管理</a></li>
                    {% else %}
                    <li><a href="/psw-modify/">修改密码</a></li>
                {% endif %}
            </ul>
        </span> | <a href="/logout/">退出</a>
        <script type="text/javascript">
            $(function(){
                $(".dropdown-toggle").hover(function(){
                    $(".dropdown-menu").toggle();
                })
            })
        </script>


{% endblock %}
{% block content %}
    <div class="data-detail">
        <form action="/modify_user_submit/" method="post">
            {{ info }}
            <input type="hidden" name="id" value="{{ user.id }}">
            <ul class="ad-ul">
                <li class="clearfix">
                    <label>用户名 : </label>
                    <div><input name="username" id="tec_name" value="{{ user.username }}" type="text"><span class="ml10 red f12"></span></div>
                </li>
                <li class="clearfix">
                    <label>密码 : </label>
                    <div><input name="password" id="password" value="{{ user.password }}" type="text"><span class="ml10 red f12"></span></div>
                </li>
            </ul>
            <div class="submit-btn"><input id="submint_btn" type="submit" value="提 交"></div>
        </form>
    </div>
{% endblock %}